<!DOCTYPE HTML>
<html>
<head>
	<title>Afegir a la cua</title>
</head>
<body>
	</head>
	<body>
	
		<div data-role="page">
			
			<div data-role="content">

				<ul class="mainMenu">
					<li><a href="#"><img src="img/NFCBtn.png"/></a></li>
					<li><a href="#" id="readQR"><img src="img/QRCodeBtn.png"/></a></li>
				</ul>
			</div><!-- /content -->
			

			<script type="text/javascript" src="js/barcodescanner.js"></script>			
			<script type="text/javascript">				
			
				//Page interaction
				$(function() {
					$('#readQR').click(function() {
						//QR code reader plugin
						window.plugins.barcodeScanner.scan(function(result) {
							//alert("We got a barcode\n" + "Result: " + result.text + "\n" + "Format: " + result.format + "\n" + "Cancelled: " + result.cancelled);
							$.mobile.changePage("turnDetails.html");
						}, function(error) {
							alert("Scanning failed: " + error);
						});
					});
				});
</script>

		</div><!-- /page -->
	</body>
</html>